import data_control from "../libs/data_control";

const {ccclass, property} = cc._decorator;

@ccclass
export default class nodeLight extends cc.Component {

    @property()
    minTime:number = 0.5;

    @property()
    maxTime:number = 1;

    start(): void {
        this.ani();
    }

    ani(){
        this.node.scale = 0;
        this.node.opacity = 255;
        this.node.angle = 0;
        let delayTime:number = data_control.getRandNumberOfArrayTwo([this.minTime,this.maxTime]);
        cc.tween(this.node).delay(delayTime).by(1,{scale:1,angle:360}).to(0.3,{opacity:0,angle:270}).call(this.ani.bind(this)).start();
    }

}
//电子邮件puhalskijsemen@gmail.com
//源码网站 开vpn全局模式打开 http://web3incubators.com/
//电报https://t.me/gamecode999
